<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/common.jspf" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>test</title>

</head>
<script type="text/javascript">
    var oldWin = parent.$("iframe[title='员工管理']").get(0).contentWindow;//返回ifram页面文档（window)
    var row =oldWin.$('#dg').datagrid("getSelected");
    $(function(){
        $('#ff').form('load',{
            usercode:row.usercode,
            employeeName:row.employeeName,
            employeeDept:row.employeeDept,
            employeeCompany:row.employeeCompany,
            employeeShop:row.employeeShop,
            employeeJob:row.employeeJob,
            employeeLock:row.employeeLock,
            employeeStatus:row.employeeStatus,
            employeeIdnum:row.employeeIdnum,
            employeePhone:row.employeePhone,
            employeeFire:row.employeeFire
        });
        $('#num').attr('readonly',true);
    });
    function getCloseModuleWin(){
        parent.$('#win').window('close');
        oldWin.$('#dg').datagrid("reload");
    }
</script>
<body>
<form id="ff" action="${proPath}/employee/empupdate.action" method="post">
    <div>
        <label >登录账号(工号):</label>
        <input class="easyui-validatebox" type="text" id="num" name="usercode" />
    </div>
    <div>
        <label >姓名:</label>
        <input class="easyui-validatebox" type="text" name="employeeName" />
    </div>
    <div>
        <label  >部门类型:</label>
        <select class="easyui-combobox" name="employeeDept" />
        <c:forEach items="${applicationScope.sysParamMap.employee_dept}" var="sp">
            <option value="${sp.key}">${sp.value}</option>
        </c:forEach>
        </select>
    </div>
    <div>
        <label  >总公司:</label>
        <select class="easyui-combobox" name="employeeCompany" />
        <c:forEach items="${applicationScope.sysParamMap.employee_company}" var="sp">
            <option value="${sp.key}">${sp.value}</option>
        </c:forEach>
        </select>
    </div>
    <div>
        <label  >店铺名称:</label>
        <select class="easyui-combobox" name="employeeShop" />
        <c:forEach items="${applicationScope.sysParamMap.employee_shop}" var="sp">
            <option value="${sp.key}">${sp.value}</option>
        </c:forEach>
        </select>
    </div>
    <div>
        <label  >职务:</label>
        <select class="easyui-combobox" name="employeeJob" />
        <c:forEach items="${applicationScope.sysParamMap.employee_job}" var="sp">
            <option value="${sp.key}">${sp.value}</option>
        </c:forEach>
        </select>
    </div>
    <div>
        <label  >锁定:</label>
        <select class="easyui-combobox" name="employeeLock" />
        <c:forEach items="${applicationScope.sysParamMap.employee_lock}" var="sp">
            <option value="${sp.key}">${sp.value}</option>
        </c:forEach>
        </select>
    </div>
    <div>
        <label  >角色:</label>
        <select class="easyui-combobox" name="employeeStatus" />
        <c:forEach items="${applicationScope.sysParamMap.employee_status}" var="sp">
            <option value="${sp.key}">${sp.value}</option>
        </c:forEach>
        </select>
    </div>
    <div>
        <label  >身份证号:</label>
        <input class="easyui-validatebox" type="text" name="employeeIdnum" />
    </div>
    <div>
        <label  >手机:</label>
        <input class="easyui-validatebox" type="text" name="employeePhone" />
    </div>
    <div>
        <label  >工作状态:</label>
        <select class="easyui-combobox" name="employeeFire" />
        <c:forEach items="${applicationScope.sysParamMap.employee_fire}" var="sp">
            <option value="${sp.key}">${sp.value}</option>
        </c:forEach>
        </select>
    </div>
    <input type="submit" value="确认修改" onclick="getCloseModuleWin()">
</form>
</body>
</html>